package com.iscreen.entities;
import java.io.Serializable;
import javax.persistence.Column;
import javax.persistence.Embeddable;

@Embeddable
public class SchemaAuditPK implements Serializable {
	@Column(name="STEP_ID")
	private String stepId;

	@Column(name="COMMAND_ID")
	private String commandId;

	private static final long serialVersionUID = 1L;

	public SchemaAuditPK() {
		super();
	}

	public String getStepId() {
		return this.stepId;
	}

	public void setStepId(String stepId) {
		this.stepId = stepId;
	}

	public String getCommandId() {
		return this.commandId;
	}

	public void setCommandId(String commandId) {
		this.commandId = commandId;
	}

	@Override
	public boolean equals(Object o) {
		if (o == this) {
			return true;
		}
		if ( ! (o instanceof SchemaAuditPK)) {
			return false;
		}
		SchemaAuditPK other = (SchemaAuditPK) o;
		return this.stepId.equals(other.stepId)
			&& this.commandId.equals(other.commandId);
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int hash = 17;
		hash = hash * prime + this.stepId.hashCode();
		hash = hash * prime + this.commandId.hashCode();
		return hash;
	}

}
